﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataFrameworkAccess.Entity;
using System.Data;
using Back.Xinkui.Common.Enum;
using Back.Xinkui.Common;

namespace Back.Xinkui.Entity.Company
{
    public class CompanyListEntity
    {
        [DataMapping("CompanyID", DbType.Int32)]
        public int CompanyID
        { get; set; }

        [DataMapping("CompanyName", DbType.String)]
        public string CompanyName { set; get; }

        [DataMapping("CompanyEmail", DbType.String)]
        public string CompanyEmail { set; get; }

        [DataMapping("PhoneNum", DbType.String)]
        public string CompanyPhone { set; get; }

        [DataMapping("UserName", DbType.String)]
        public string UserName { set; get; }

        [DataMapping("CreateDate", DbType.DateTime)]
        public DateTime CreateDate { set; get; }

        public string viewCreateDate
        {
            get
            {
                return CreateDate.ToString("yyyy-MM-dd");
            }
        }

        [DataMapping("AuditStatus", DbType.Int32)]
        public EAuditStatus AuditStatus
        { get; set; }

        public string viewAuditStatus
        {
            get
            {
                return EnumHelper.EnumToString(AuditStatus);
            }
        }
    }
}
